/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dameki.game.player;

import dameki.core.Controller;
import dameki.game.GameMove;
import dameki.game.Stone;
import java.util.ArrayList;

/**
 *
 * @author Tobi
 */
public abstract class Player implements IPlayer {

    protected ArrayList<Stone> stones;
    protected Controller control;
    protected boolean color;

    public Player(boolean color) {
        this.color = color;
    }

    @Override
    public GameMove[] move(Stone[][] field) {
        return null;
    }

    @Override
    public boolean getColor() {
        return color;
    }
    
    public void invertColor(){
        this.color = !this.color;
    }

    @Override
    public void setController(Controller control) {
        this.control = control;
    }

    @Override
    public String getColorString() {
        if (color) {
            return "White";
        } else {
            return "Black";
        }
    }

    @Override
    public void setStoneList(ArrayList<Stone> stones) {
        this.stones = stones;
    }
    
    public ArrayList<Stone> getStoneList() {
        return this.stones;
    }
}
